import myaxios from '../myAxios'
import baseUrl from '../baseUrl'
const BASEURL = baseUrl.BMDURL
const directorApi = {
        // 删除导演
        delete(params){
            let url = BASEURL+'/movie-Director/del'
            return myaxios.post(url,params)
        },
        // 新增导演信息
        addDirector(params){
            let url = BASEURL+"/movie-Director/add"
            return myaxios.post(url,params)
        },
        // 关键字模糊查询导演
        queryDirectorByName(params){
            let url = BASEURL+"/movie-Directors/name"
            return myaxios.post(url,params)
        },
        // 查询导演列表
        queryAllDirector(){
            let url = BASEURL+'/movie-Directors'
            let params = {page:1,pagesize:100}
            return myaxios.get(url,params)
        },
}
export default directorApi